﻿<%@ Page Title="" Language="C#"  MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.InternalTeamMessages" StylesheetTheme="SkinFile" CodeBehind="InternalTeamMessages.aspx.cs" %>
    
<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, InternalTeamMessages_PageNameLabel %>"
        CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <div class="red_title">
        <asp:Label ID="PageTitleLabel" runat="server" Text="<%$ Resources:Resource, InternalTeamMessages_PageTitle %>" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
        <div class="padding5 floater">
            <img src="Images/Hypo/Secretary1.png" alt="secretary" height="100" width="109" />
        </div>
        <br />
        <br />
        <asp:Label ID="Info1Label" runat="server" SkinID="GreenSmallHeaderLabel" Text="<%$ Resources:Resource, InternalTeamMessages_Info1Label %>"></asp:Label>
        <asp:Label ID="Info2Label" runat="server" SkinID="GreenSmallHeaderLabel" Text="<%$ Resources:Resource, InternalTeamMessages_Info2Label %>"></asp:Label>
        <asp:Label ID="Info22Label" runat="server" Visible="false" SkinID="TeamNameLabel"></asp:Label>
        <asp:Label ID="Info3Label" runat="server" SkinID="GreenSmallHeaderLabel" Text="<%$ Resources:Resource, InternalTeamMessages_Info3Label %>"></asp:Label>
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="DeleteAllButton" runat="server" Text="<%$ Resources:Resource, Global_DeleteAll %>"
            message="<%$ Resources:Resource, InternalTeamMessages_DeleteAllButtonOnClientClick %>"
            CssClass="GreenSmallButtonStyle" OnClientClick='return confirm(this.getAttribute("message"))'
            OnClick="DeleteAll" />
        &nbsp;
        <asp:Button ID="DeleteSelectedButton" runat="server" Text="<%$ Resources:Resource, InternalTeamMessages_DeleteSelectedButtonText %>"
            message="<%$ Resources:Resource, InternalTeamMessages_DeleteSelectedButtonOnClientClick %>"
            CssClass="GreenSmallButtonStyle" OnClientClick='return confirm(this.getAttribute("message"))'
            OnClick="DeleteSelected" />
        <div class="clearBoth"></div>
    
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" SkinID="Professional"
            AutoGenerateColumns="False" AllowPaging="True" Font-Size="13px" EnableTheming="True"
            PageSize="25">
            <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
            <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Date %>" ItemStyle-Width="30%">
                    <ItemTemplate>
                        <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date")%>' SkinID="GridLabel"> </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_From %>" ItemStyle-Width="30%">
                    <ItemTemplate>
                        <asp:Label ID="FromLabel" runat="server" Text='<%# Eval("From")%>' SkinID="GridLabel"> </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Title %>" ItemStyle-Width="40%">
                    <ItemTemplate>
                        <asp:HyperLink ID="MessageHyperLink" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("MessageId", "InternalTeamMessageDetails.aspx?MessageId={0}") %>'
                            SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HiddenField ID="MessageIdHiddenField" runat="server" Value='<%# Eval("MessageId") %>' />
                        <asp:CheckBox ID="DeleteCheckBox" runat="server" Checked="false" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetInternalMessages" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <div class="clearBoth"></div>
        </div>
        </div>
        <div class="basic_element">
        <div class="red_title">
            <asp:Label ID="OldMessagesTitleLabel" runat="server" Text='<%$ Resources:Resource, InternalMessages_OldMessagesTitle %>'  CssClass="white_title"></asp:Label>
        </div>
        <div class="padding5">
        <asp:GridView ID="OldMessagesGridview" runat="server" DataSourceID="OldMessagesDataSource" SkinID="Professional"
            AutoGenerateColumns="False" AllowPaging="True" Font-Size="13px" EnableTheming="True" PageSize="25">
            <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
            <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Date %>" ItemStyle-Width="30%">
                    <ItemTemplate>
                        <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date")%>' SkinID="GridLabel"> </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_From %>" ItemStyle-Width="30%">
                    <ItemTemplate>
                        <asp:Label ID="FromLabel" runat="server" Text='<%# Eval("From")%>' SkinID="GridLabel"> </asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$ Resources:Resource, Global_Title %>" ItemStyle-Width="40%">
                    <ItemTemplate>
                        <asp:HyperLink ID="MessageHyperLink" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("MessageId", "InternalTeamMessageDetails.aspx?MessageId={0}") %>'
                            SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="OldMessagesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetOldInternalMessages" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        </div></div>
</asp:Content>
